import { Entity, PrimaryGeneratedColumn } from 'typeorm'
import { Shop } from './shop.entity'
import { ShopGood } from './shop-good.entity'

// 店铺服务
@Entity()
export class ShopService {
  @PrimaryGeneratedColumn()
  id: number
  // 服务价格
  price: number
  // 所属店铺
  shop: Shop
  // 服务标题
  title: string
  // 服务描述
  description: string
  // 关联商品
  goods: ShopGood[]
}
